//
//  BindMobileManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/6/15.
//

#import "BindMobileManager.h"

@implementation BindMobileManager

- (NSString *)methodName{
    return @"/auth/app/bindMobile";
}

- (JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypePOST;
}

#pragma mark - JPAPIManagerParamSource
- (NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    dict[@"phone"] = self.phone;
    dict[@"mobileCode"] = self.mobileCode;
    if(self.unionid&&![self.unionid isEqualToString:@""]){
        dict[@"unionid"] = self.unionid;
    }
    if(self.userId&&![self.userId isEqualToString:@""]){
        dict[@"userId"] = self.userId;
    }
    return dict;
}

@end
